<%@ page import="salesalert.Sale" %>



<div class="fieldcontain ${hasErrors(bean: saleInstance, field: 'attends', 'error')} ">
	<label for="attends">
		<g:message code="sale.attends.label" default="Attends" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${saleInstance?.attends?}" var="a">
    <li><g:link controller="attend" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="attend" action="create" params="['sale.id': saleInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'attend.label', default: 'Attend')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: saleInstance, field: 'title', 'error')} ">
	<label for="title">
		<g:message code="sale.title.label" default="Title" />
		
	</label>
	<g:textField name="title" value="${saleInstance?.title}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: saleInstance, field: 'url', 'error')} ">
	<label for="url">
		<g:message code="sale.url.label" default="Url" />
		
	</label>
	<g:textField name="url" value="${saleInstance?.url}"/>
</div>

